home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Questions on promises
- Sent: 3/7/96 10:07 AM
- Received: 3/7/96 10:51 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >1) Do I have to implement MySelection::ExternalizeSelection if I use promises
- >for all my copy/paste stuff?
- >
- >2) I am a little confused about how to keep deleted stuff around when they
- >are promised. A senario I can envision is (say for a draw part): the user
- >selects some shapes, does a copy (it is promised only), deletes some of the
- >promised shapes, then does a save. I can easily keep the deleted shapes until
- >the save, but I would like to flush them at that time. Obviously then I have
- >a problem if they are promised. A big advantage for promises is to not have
- >to duplicate a huge amount of data until it is needed (for paste), so making
- >a copy of the promised shapes is not acceptable. What strategy do you all
- >suggest?
-
- 1) No, you don't have to implement your MySelection::ExternalizeSelection
- if you use promises unless you don't use promises for Drag&Drop. Both
- Drag&Drop and clipboard are using the selection object.
-
- 2) When promising you must keep track of your promised data. When
- something changes your promised data you must tricker a fulfill promise
- our save the original data. There is no good or bad way to do that. It
- really depends on your data. ODFDraw fulfills promised if a promised
- shape is changed. This is one way to do it.
-
- Henri Lamiraux
- ODF Team
-